package com.example.doipandroidclient;

import android.util.Base64;

import core.crypto.ByteStringCodec;

public class AndroidBase64Codec implements ByteStringCodec {
    @Override
    public String encodeToString(byte[] bytes) {
        return Base64.encodeToString(bytes, Base64.DEFAULT);
    }

    @Override
    public byte[] decodeFromString(String s) {
        return Base64.decode(s, Base64.DEFAULT);
    }
}
